package com.jiyun.play.mapper;

import com.domain.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author lenovo
* @description 针对表【orders】的数据库操作Mapper
* @createDate 2024-12-20 17:04:39
* @Entity com.domain.Orders
*/
@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {

    @Select("select o.*,g.game_type as companionGame,g.image as image from orders o LEFT JOIN games g on o.pid=g.id")
    List<Orders> findAll();
}




